package models.menu;

import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * Created by Gipxy group
 * Date: 4/2/12
 */
@Entity
public class MenuItem extends Model {
    @Id
    public Long id;

    @ManyToOne
    public Menu parent;

    public String url;        //=null mean can't clickable

    public int level=2; //1 or 2, 1=h2, 2=none

    public String name; // not use now

    public int index; //So thu tu xuat hien tren menu.

    public int column=1;//having 2 columns

    public MenuItem() {
    }
}
